package jee.boot.entity.activiti;

import jee.boot.common.annotation.Column;
import jee.boot.common.annotation.PrimaryKey;
import jee.boot.common.annotation.Transient;
import jee.boot.common.basic.DataEntity;
import jee.boot.entity.auth.Account;

import java.util.Date;

/**
 * 工作流基类
 *
 * @param <T>
 */
public abstract class ActDataEntity<T> extends DataEntity<T> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @PrimaryKey
    @Column(name="ID_")
    protected String id;

    /**
     * 忽略系统内的审计字段
     */
    @Transient
    protected Account createBy;
    @Transient
    protected Account updateBy;
    @Transient
    protected Date createDate;
    @Transient
    protected Date updateDate;
    @Transient
    protected String remarks;
    @Transient
    protected String status;
    @Transient
    protected String tenant;

    public ActDataEntity() {
        super();
    }

    public ActDataEntity(String id) {
        super();
        this.id=id;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

}
